<template>
  <div class="home-box">
    <PlusOutlined @click="addNew" />
  </div>
</template>

<script lang="ts" setup>
import { PlusOutlined } from '@ant-design/icons-vue';

const props = defineProps({
  treeHeaderAction: {
    type: Function,
    default: undefined,
  }
} as const);
const { treeHeaderAction } = props;

function addNew() {
  treeHeaderAction && treeHeaderAction()
}

</script>
